<?
    switch ($this->level)
    {
        case 1: // EXPAND_ACCOUNTS
            echo $this->partial("menu/partial.accounts.companies.phtml", array("companies" => $this->companies));
            break;

        case 2: // EXPAND_ACCOUNTS_IN_COMPANY
            echo $this->partial("menu/partial.accounts.phtml", array("accounts" => $this->accounts, "company_id" => $this->company_id));
            break;

        case 3: // EXPAND_ACCOUNTS_ACCOUNTS
            $result = $this->partial("menu/partial.accounts.phtml", array("accounts" => $this->accounts, "company_id" => $this->company_id));
            $result = $this->partial("menu/partial.accounts.companies.phtml", array("companies" => $this->companies, "expand_company_id" => $this->company_id, "expand" => $result));

            echo $result;
            break;
    }; // switch ($this->level)
?>